<style lang="less" scoped src="./organizeSet.less"></style>
<script src="./organizeSet.js"></script>

<template>
    <div class="main-div">
        <div class="main-content">
            <div class="table">
                <div class="table-title"><span>报名设置</span></div>
                <div class="table-content">
                    <Row class="table-Row">
                        <Col span="4" class="titele">
                        <span style="color: red">*</span>报名开始时间：
                        </Col>
                        <Col span="8" class="content">
                        <DatePicker v-model="formData.applyStartTime"  type="datetime" :editable="false" :options="options" format="yyyy-MM-dd HH:mm:ss" style="width: 100%"></DatePicker>
                        </Col>
                        <Col span="4" class="titele">
                        <span style="color: red">*</span>报名结束时间：
                        </Col>
                        <Col span="8" class="content">
                        <DatePicker v-model="formData.applyEndTime" type="datetime" :editable="false" :options="options" format="yyyy-MM-dd HH:mm:ss" style="width: 100%"></DatePicker>
                        </Col>
                    </Row>
                    <Row class="table-Row">
                        <!--<Col span="4" class="titele">-->
                        <!--同期同学员网报最大数：-->
                        <!--</Col>-->
                        <!--<Col span="8" class="content">-->
                        <!--<InputNumber v-model="formData.maxApplyNo" style="width: 100%" :min="0"-->
                                     <!--:formatter="value => parseInt(`${value}`)"-->
                        <!--&gt;</InputNumber>-->
                        <!--</Col>-->
                        <Col span="4" class="titele">
                        报名有效期模式设置：
                        </Col>
                        <Col span="8" class="content">
                        <Select v-model="formData.applyLimitedType">
                            <Option v-for="item in applyLimitedTypeList" :value="item.id" :key="item.id">{{item.name}}</Option>
                        </Select>
                        </Col>
                    </Row>
                    <Row class="table-Row">
                        <Col span="4" class="titele">
                        报名人数是否可以修改：
                        </Col>
                        <Col span="8" class="content">
                        <Select v-model="formData.applyNoEditFlag">
                            <Option v-for="item in selectYesOrNo" :value="item.id" :key="item.id">{{item.name}}</Option>
                        </Select>
                        </Col>
                        <Col span="4" class="titele">
                        身份证号是否必须：
                        </Col>
                        <Col span="8" class="content">
                        <Select v-model="formData.idCardRequire">
                            <Option v-for="item in selectYesOrNo" :value="item.id" :key="item.id">{{item.name}}</Option>
                        </Select>
                        </Col>
                    </Row>
                    <Row class="table-Row">
                        <Col span="4" class="titele">
                        <span style="color: red">*</span>默认教务报名有效缴费时间：
                        </Col>
                        <Col span="8" class="content">
                        <InputNumber v-model="formData.defaultApplyLimitedTimed" :min="0"
                                     :formatter="value => parseInt(`${value}`)"
                        ></InputNumber>天
                        <InputNumber v-model="formData.defaultApplyLimitedTimeh" :min="0" :max="23"
                                     :formatter="value => parseInt(`${value}`)"
                        ></InputNumber>时
                        <InputNumber v-model="formData.defaultApplyLimitedTimem" :min="0" :max="59"
                                     :formatter="value => parseInt(`${value}`)"
                        ></InputNumber>分
                        </Col>
                        <Col span="4" class="titele">
                        <span style="color: red">*</span>默认网上（短信）报名有效缴费时间：
                        </Col>
                        <Col span="8" class="content">

                        <InputNumber v-model="formData.defaultMessageApplyLimitedTimed" :min="0"
                                     :formatter="value => parseInt(`${value}`)"
                        ></InputNumber>天
                        <InputNumber v-model="formData.defaultMessageApplyLimitedTimeh" :min="0" :max="23"
                                     :formatter="value => parseInt(`${value}`)"
                        ></InputNumber>时
                        <InputNumber v-model="formData.defaultMessageApplyLimitedTimem" :min="0" :max="59"
                                     :formatter="value => parseInt(`${value}`)"
                        ></InputNumber>分
                        </Col>
                    </Row>
                    <Row class="table-Row">
                        <Col span="4" class="titele">
                        是否开启老生报名：
                        </Col>
                        <Col span="8" class="content">
                        <Select v-model="formData.oldStudentApplyFlag">
                            <Option v-for="item in selectYesOrNo" :value="item.id" :key="item.id">{{item.name}}</Option>
                        </Select>
                        </Col>
                        <Col span="4" class="titele">
                        报名方式：
                        </Col>
                        <Col span="8" class="content">
                        <Select v-model="formData.applyType">
                            <Option v-for="item in applyTypeList" :value="item.id" :key="item.id">{{item.name}}</Option>
                        </Select>
                        </Col>
                    </Row>
                    <Row class="table-Row">
                        <Col span="4" class="titele">
                        是否启用短信报名：
                        </Col>
                        <Col span="8" class="content">
                        <Select v-model="formData.messageApplyFlag">
                            <Option v-for="item in selectYesOrNo" :value="item.id" :key="item.id">{{item.name}}</Option>
                        </Select>
                        </Col>
                        <!--<Col span="4" class="titele">
                        是否开启点到功能：
                        </Col>
                        <Col span="8" class="content">
                        <Select v-model="formData.signFlag">
                            <Option v-for="item in selectYesOrNo" :value="item.id" :key="item.id">{{item.name}}</Option>
                        </Select>
                        </Col>-->
                    </Row>
                    <Row class="table-Row">
                        <Col span="4" class="titele">
                        学校是否必填：
                        </Col>
                        <Col span="8" class="content">
                        <Select v-model="formData.schoolRequireFlag">
                            <Option v-for="item in selectYesOrNo" :value="item.id" :key="item.id">{{item.name}}</Option>
                        </Select>
                        </Col>
                        <Col span="4" class="titele">
                        支付栈点appkey：
                        </Col>
                        <Col span="8" class="content">
                        <Input  v-model="formData.appKey"></Input>
                        </Col>
                    </Row>

                    <Row class="table-Row">
                        <Col span="4" class="titele">
                           是否微信支付:
                        </Col>
                        <Col span="8" class="content">
                            <Select v-model="formData.ifWxPay">
                                <Option v-for="item in selectYesOrNo" :value="item.id" :key="item.id">{{item.name}}</Option>
                            </Select>
                        </Col>
                        <Col span="4" class="titele">
                            是否支付宝支付:
                        </Col>
                        <Col span="8" class="content">
                            <Select v-model="formData.ifAliPay">
                                <Option v-for="item in selectYesOrNo" :value="item.id" :key="item.id">{{item.name}}</Option>
                            </Select>
                        </Col>
                    </Row>

                </div>
            </div>
        </div>
        <div slot="footer" class="main-footer">
            <Button type="primary" @click="save" style="width: 100px">保存</Button>
            <!--<Button type="ghost" style="margin-left: 8px">取消</Button>-->
        </div>
    </div>
</template>